/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package player;

import java.io.File;
import java.util.logging.Level;
import java.util.logging.Logger;
import player.model.Player;
import player.model.PlayerImpl;
import player.model.Playlist;
import player.model.Track;
import player.util.TrackLoader;

/**
 *
 * @author Andrej
 */
public class Main {
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args)
    {
//    	MainWindow mW = new MainWindow("WINapp Player");
//    	mW.setVisible(true);
       new Main();
    }

    public Main()
    {
        try
        {
            Track track = TrackLoader.loadTrack(new File("C:\\Users\\Andrej\\Music\\Laibach\\Wat - 2003\\02 - Tanz Mit Laibach.mp3"));
            Track track1 = TrackLoader.loadTrack(new File("C:\\Users\\Andrej\\Music\\Laibach\\Wat - 2003\\03 - Du Bist Unser.mp3"));
            Playlist playlist = new Playlist();
            playlist.addTrack(track);
            playlist.addTrack(track1);
            
            Player player = new PlayerImpl();
            player.setPlaylist(playlist);
            player.start();
            player.seek(30);
            player.start();

            player.stop();

        } catch (Exception ex)
        {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }
        
    }

}
